<!DOCTYPE html>
<html style="height: 100%;">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <meta name="format-detection" content="telephone=no">
    <title></title>
    <script type="text/javascript" src="../js/localstorage.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/zTreeStyle.css">
    <link rel="stylesheet" href="../css/Stylesheet.css">
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.ztree.core.js"></script>
    <style type="text/css">
    * {
        margin: 0px;
        padding: 0px;
        font-size: 12px;
    }

    
    #tree{
            width: 140px;display: none;position: absolute;background: #fff;
        }
        #list{
            position: absolute;right: 0px;margin-top: 20px;width: 200px;background: #eaeaea;
        }
    </style>
    <script type="text/javascript">
        // tree节点点击事件  name为这个节点的值
        function zTreeOnClick(event, treeId, treeNode) {
            $("#site").val(treeNode.name);
        };
        var setting = {
            callback: {
                onClick: zTreeOnClick
            }
        };
        var zNodes =[
            { name:"香港", open:true,
                children: [
                    { name:"九龙区",open:true,
                        children: [
                            { name:"场所A" },
                            { name:"场所B" },
                            { name:"场所C" }
                        ]},
                    { name:"旺角区",open:true,
                            children: [
                            { name:"场所A" },
                            { name:"场所B" },
                            { name:"场所C" }
                        ]},
                    { name:"西贡区",open:true,
                            children: [
                            { name:"场所A" },
                            { name:"场所B" },
                            { name:"场所C" }
                        ]},
                    { name:"油尖旺区",open:true,
                           children: [
                            { name:"场所A" },
                            { name:"场所B" },
                            { name:"场所C" }
                        ]},
                    { name:"深水埗区",open:true,
                           children: [
                            { name:"场所A" },
                            { name:"场所B" },
                            { name:"场所C" }
                           ]}
                ]}
        ];
    $(function(){
        $.fn.zTree.init($("#treeDemo"), setting, zNodes);
    })
    </script>
    <script type="text/javascript">
        $(function(){
        
            $("div").click(function(e){
                var id = $(this).attr("id");
                if(id == "aaa"){
                    return false;
                }else if(id == "tree"){
                    return false;
                }else{
                    $("#tree").slideUp(300);
                }
                return false;
            })

            $("#site").click(function(e){
                $("#tree").slideDown(300);
            })

            // $("#site").blur(function(e){
            //  $("#tree").slideUp(300);
            // })
            $("#tree").hover(function(){},function(){
                $("#tree").slideUp(300);
                // $("#site").blur();
            })
        })
    </script>
</head>

<body>
    <div class="pageheader">
        <div class="clear"></div>
        <!-- <img src="/Icons/changsuo.png" alt="Customers" title="Customers">--> 
        <h1><script>document.write(language.weihu_changsuo)</script></h1>
    </div>
    <div class="listFilter">
        <!--<h2><script>document.write(language.Filter)</script><span class="tooltip" style="display: none;"><em>(筛选下表)</em></span></h2>
         <a href="#" class="tooltoggle">显示/隐藏工具提示</a> 
        <div class="divider"></div>-->
        <table style="width: 100%;" id="query_table">
            <tbody>
                <tr>
                    <td class="FormLabel" style="width: auto;">
                        <script>
                        document.write(language.Place_name)
                        </script>：
                        
                        <div style="display: inline-block;" id="aaa">
                            <input name="site" type="text" id="site" placeholder="Please choose site">
                            <!-- <button class='button select_site'><script>document.write(language.Choice_site)</script></button> -->
                            <div id="tree">
                                <!-- <button style="float: right;" onclick="add()">增加</button> -->
                                <ul id="treeDemo" class="ztree"></ul>
                                </ul>
                            </div>
                        </div>

                        <script>
                        document.write(language.Person_in_charge)
                        </script>：
                        <input name="ctl00$ContentPlaceHolder1$txtPostcode" type="text" id="ctl00_ContentPlaceHolder1_txtPostcode">
                        <button class='button screen'><script>document.write(language.Filter)</script></button>
                        <button class='button clear'><script>document.write(language.remove)</script></button>
                        <button class='button add_button'><script>document.write(language.create)</script></button>
                    </td>
                   
                </tr>
            </tbody>
        </table>
        <div class="formSubmit">
            <!-- <button class='button'><script>document.write(language.Filter)</script></button>
            <button class='button'><script>document.write(language.remove)</script></button> -->
        </div>
    </div>
    <div class="ExportLinks">
            <a class="common_operation1" href="#"><script>document.write(language.Export_all_to)</script> Excel</a>
            <a class="common_operation2" href="#"><script>document.write(language.Export_this_page_to)</script> Excel</a>
            <a class="common_operation3" href="#"><script>document.write(language.Export_this_page_to)</script> PDF</a>
            <a class="common_operation4" href="#"><script>document.write(language.Export_all_to)</script> PDF</a>
            <a class="common_operation5" href="#"><script>document.write(language.send)</script> <script>document.write(language.email)</script></a>
        </div>
    <div class="reportResults">
        <table class="list_table" id="ltReport_list" width="100%" cellspacing="0" style="text-align: center;">
            <thead>
                <!-- <tr>
						<td colspan="4" style="text-align:left;line-height: 40px;border-right: 0px;font-weight: bold;padding-left: 30px;">
							<script>
								document.write(language.Place_document)
							</script>
						</td>
						<td colspan="4" style="text-align:right;line-height: 40px;border-left: 0px;"><button>
							<script>
								document.write(language.create)
							</script></button>
						</td>
					</tr> -->
                <tr>
                    <th style="width: 5%;">
                        <script>
                        document.write(language.order_number)
                        </script>
                    </th>
                    <th style="width: 10%;">
                        <script>
                        document.write(language.Place_name)
                        </script>
                    </th>
                    <th style="width: 10%;">
                        <script>
                        document.write(language.Place)
                        </script>
                    </th>
                    <th style="width: 10%;">
                        <script>
                        document.write(language.Document_type)
                        </script>
                    </th>
                    <th style="width: 10%;">
                        <script>
                        document.write(language.file_description)
                        </script>
                    </th>
                    <th style="width: 5%;">
                        <script>
                        document.write(language.operation)
                        </script>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr class="odd_row">
                    <td>1</td>
                    <td>Great Wei Mansion</td>
                    <td>South inner ring No.65</td>
                    <td>Fire instruction</td>
                    <td>Brief introduction of document</td>
                    <td>
                        <button class="edit"><script>document.write(language.edit)</script></button>
                        <button class="delete">
                            <script>
                            document.write(language.delete)
                            </script>
                        </button>
                    </td>
                </tr>
                <tr class="even_row">
                    <td>2</td>
                    <td>Thousand peak building</td>
                    <td>No. 32 Feng Feng Road</td>
                    <td>Fire safety book</td>
                    <td>Brief introduction of document</td>
                    <td>
                        <button class="edit"><script>document.write(language.edit)</script></button>
                        <button class="delete">
                            <script>
                            document.write(language.delete)
                            </script>
                        </button>
                    </td>
                </tr>
                <tr class="odd_row">
                    <td>3</td>
                    <td>Wuyi Mansion</td>
                    <td>Wuyi Road, No. 56</td>
                    <td>Visitor consent form</td>
                    <td>Brief introduction of document</td>
                    <td>
                        <button class="edit"><script>document.write(language.edit)</script></button>
                        <button class="delete">
                            <script>
                            document.write(language.delete)
                            </script>
                        </button>
                    </td>
                </tr>
                <tr class="even_row">
                    <td>4</td>
                    <td>Great Wei Mansion</td>
                    <td>South inner ring No.87</td>
                    <td>Place safety Encyclopedia</td>
                    <td>Brief introduction of document</td>
                    <td>
                        <button class="edit"><script>document.write(language.edit)</script></button>
                        <button class="delete">
                            <script>
                            document.write(language.delete)
                            </script>
                        </button>
                    </td>
                </tr>
                <tr class="odd_row">
                    <td>5</td>
                    <td>Great Wei Mansion</td>
                    <td>South inner ring No.65</td>
                    <td>Fire control</td>
                    <td>Brief introduction of document</td>
                    <td>
                        <button class="edit"><script>document.write(language.edit)</script></button>
                        <button class="delete">
                            <script>
                            document.write(language.delete)
                            </script>
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <div class="WhereToLinks"></div>
    </div>
</body>

</html>